package com.cskaoyan.mall.cart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  //不会往容器中注入连接池，而我们配置了common.yaml中配置数据库，本服务不需要连接数据库，所以我们这里不需要连接数据库
@ComponentScan(basePackages = "com.cskaoyan.mall")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.cskaoyan.mall")  //扫描openfeign接口所在的包
public class ServiceCartApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceCartApplication.class,args);
    }
}
